﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using

#endregion

namespace NetBay.Core.Log
{
    /// <summary>
    /// 
    /// </summary>
    public class LogManager
    {
        private static ILogger instance = null;

        public static void ConfigFile(string p_sConfigFileNameFullPath)
        {
            if (instance == null)
            {
                Specific.Log4Net.Log4NetLogger.ConfigFullFilePath = p_sConfigFileNameFullPath;
                instance = new Specific.Log4Net.Log4NetLogger(log4net.LogManager.GetLogger("BusinessLogger"));
            }
        }

        /// <summary>
        /// Gets the business logger.
        /// </summary>
        /// <returns></returns>
        public static ILogger Instance()
        {
            return instance;
        }
    }
}